//
//  GameObject.h
//  SkyFight
//
//  Created by HoangLinh on 7/25/13.
//
//

#ifndef __SkyFight__GameObject__
#define __SkyFight__GameObject__

#include "DataAccess.h"

#include "GamePlayScreen.h"

class GameObject : public cocos2d::CCObject
{
public:
    GameObject();
    ~GameObject();

    virtual void initGameObjectWith(GamePlayScreen *_gameScreen);
    virtual void initGameObjectWith(GamePlayScreen *_gameScreen, CCDictionary *_dict);
    virtual void createSprite();
    virtual void removeObject();
    virtual void changeState(unsigned char _state);

public: // properties
    GAME_OBJECT objType;
    unsigned char objState;

    GamePlayScreen *handler;
    CCSprite *sprite;
    CCDictionary *dataDict;
};

#endif /* defined(__SkyFight__GameObject__) */
